<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'uploadoption.jsp' starting page</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/1.3.4/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/wu.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/icon.css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/1.3.4/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/1.3.4/locale/easyui-lang-zh_CN.js"></script>
  	<script type="text/javascript">
  		$(function(){
	  		var msg = $("#msg").val();
			if(msg!=""){
				$.messager.show({
					title:'消息',
					msg:msg
				});
				$("#msg").val("");
			}
  			$("input[type='checkbox']").each(function(){
  				var name=$(this).next().text();
  				$(this).attr('name',name);
  			});
  		});
  	</script>
  </head>
  
  <body>
  <input type="hidden" name="msg" id="msg" value="${msg }">  
  	<form action="${pageContext.request.contextPath}/file?op=updatetype" method="post">
  	文件上传格式：
  		<c:forEach var="t" items="${list }">
  			<input type="checkbox" <c:if test="${t.state==1 }">checked="checked"</c:if> name = '' value='true'><span>${t.name }</span> 
  		</c:forEach>
  		<p></p>
  		<input type="submit" value="保存">
  </form>
  </body>
</html>
